/* 
 * Copyright (C), 2016-2020, 厦门盈欣宝金融信息服务有限公司
 * Project Name :boot-parent
 * File Name: org.easytouesit.mongodb
 * Encoding UTF-8 
 * Version: 1.0 
 * Date: 2018-08-27 15:57
 * History:  
 * 1. Date: 2018-08-27
 *    Author: guojm 
 *    Modification: 新建
 * 2. ...
 */
package org.easytouesit.mongodb.service;

import org.easytouesit.mongodb.model.User;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author guojm
 * @version V1.0
 * @date 2018-08-27
 */
public interface UserService {
    List<User> findAll();

    User getUser(Integer id);

    void update(User user);

    void insert(User user);

    void insertAll(List<User> users);

    void remove(Integer id);

    List<User> findByPage(User user,Pageable pageable);
}
